home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
COMAL
/
B-Book Series
/
(k)b4.d64
/
solution4.9
< prev
next >
Wrap
Text File
|
2007-02-28
|
373b
|
17 lines
0010 PRINT "NO BATHING"
0020 READ FIRST,SECOND,THIRD
0030 PRINT "NO BATHING"
0040 PRINT "NO BATHING"
0050 REPEAT
0060 AVERAGE:=(FIRST+SECOND+THIRD)/3
0070 IF AVERAGE>25 THEN
0080 PRINT "NO BATHING"
0090 ELSE
0100 PRINT "BATHING ALLOWED"
0110 ENDIF
0120 FIRST:=SECOND
0130 SECOND:=THIRD
0140 READ THIRD
0150 UNTIL THIRD<0
0160 DATA 13,15,26,24,28,30,27,22,21,19,17,14,-1